home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / GLUT-3.7 / LIB / GLSMAP / smap_gettexobj.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-12  |  578 b   |  32 lines

  1.  
  2. /* Copyright (c) Mark J. Kilgard, 1998.  */
  3.  
  4. /* This program is freely distributable without licensing fees
  5.    and is provided without guarantee or warrantee expressed or
  6.    implied. This program is -not- in the public domain. */
  7.  
  8. #include "glsmapint.h"
  9.  
  10. void
  11. smapGetSphereMapTexObj(SphereMap *smap, GLuint *texobj)
  12. {
  13.     *texobj = smap->smapTexObj;
  14. }
  15.  
  16. void
  17. smapGetViewTexObj(SphereMap *smap, GLuint *texobj)
  18. {
  19.     *texobj = smap->viewTexObj;
  20. }
  21.  
  22. void
  23. smapGetViewTexObjs(SphereMap *smap, GLuint texobjs[6])
  24. {
  25.     int i;
  26.  
  27.     for (i=0; i<6; i++) {
  28.         texobjs[i] = smap->viewTexObjs[i];
  29.     }
  30. }
  31.  
  32.